package edu.ynu.se.xiecheng.achitectureclass.demo.dao;

import edu.ynu.se.xiecheng.achitectureclass.common.dao.LogicDAO;
import edu.ynu.se.xiecheng.achitectureclass.demo.entity.data.SensorData;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SensorDataDao extends LogicDAO<SensorData, Long> {
    List<SensorData> findAllByDeviceIdOrderByCreateTimeAsc(Long deviceId);
    // 该方法实现某个类型传感器数据实体的所有item查询
    List<SensorData> findSensorDataBySensorType(String sensorType);
}